package com.onekbase.framework.mybatis.engine.core;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.SqlSessionTemplate;

import java.util.List;

@Slf4j
public class MetaScriptEngine {

    @Setter
    private SqlSessionTemplate sqlSession;

    @Setter
    private MetaScriptUpdater metaScriptUpdater;

    public <E> List<E> selectList(String statement, Object parameter){
        return sqlSession.selectList(statement,parameter);
    }

    public <T> T selectOne(String statement, Object parameter){
        return sqlSession.selectOne(statement,parameter);
    }

}
